  /**
   * Generate time : 2012-03-05 15:36:19
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cs.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCSSystemSettingCE 
 * table comment : 设备维修设置 
 */
public class ZMCSSystemSettingCE extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private Long fdClassLimits = new Long(0);	/* 设备分类级别*/
	private String fdIncludeClass = " ";		/* 设备编号是否关联分类*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdClassLimits");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName("设备分类级别");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIncludeClass");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName("设备编号是否关联分类");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCSSystemSettingCE() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdClassLimits - 设备分类级别
	 * @return the fdClassLimits
	 */
	public Long getFdClassLimits() {
		return this.fdClassLimits;
	}
	
	/**
	 * set the fdClassLimits - 设备分类级别
	 */
	public void setFdClassLimits(Long fdClassLimits) {
		this.fdClassLimits = fdClassLimits;
	}
	
	/**
	 * get the fdIncludeClass - 设备编号是否关联分类
	 * @return the fdIncludeClass
	 */
	public String getFdIncludeClass() {
		return this.fdIncludeClass;
	}
	
	/**
	 * set the fdIncludeClass - 设备编号是否关联分类
	 */
	public void setFdIncludeClass(String fdIncludeClass) {
		this.fdIncludeClass = fdIncludeClass;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdClassLimits(NumberUtils.toLong(StringUtils.toString(map.get("fdClassLimits")), fdClassLimits));
		setFdIncludeClass(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIncludeClass")), fdIncludeClass));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdClassLimits",StringUtils.toString(fdClassLimits, eiMetadata.getMeta("fdClassLimits")));	
			map.put("fdIncludeClass",StringUtils.toString(fdIncludeClass, eiMetadata.getMeta("fdIncludeClass")));	
			
		return map;
	
	}
}